﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CXAgent
/// </summary>
/// 
namespace CE.User
{
    public class CXAgent
    {
        private Int64 _refid;
        private Int64 _agentid;
        private string _agentname;
        private string _email;
        private string _producttype;
        private Int32 _jobstatus;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public CXAgent()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 RefId
        {
            get { return _refid; }
            set { _refid = value; }
        }

        public Int64 AgentId
        {
            get { return _agentid; }
            set { _agentid = value; }
        }
        
        public string AgentName
        {
            get { return _agentname; }
            set { _agentname = value; }
        }
        
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string ProductType
        {
            get { return _producttype; }
            set { _producttype = value; }
        }

        public Int32 JobStatus
        {
            get { return _jobstatus; }
            set { _jobstatus = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _refid = 0;
            _agentid = 0;
            _agentname = "";
            _email = "";
            _producttype = "";
            _jobstatus = 0;
            _status = true;
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();

        }

    }
}